package com.fjl.importSelector;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@Import(MainConfig.class)
public class DemoApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(DemoApplication.class, args);

        if (context.containsBean("hello")) {
            System.out.println("✔ Bean 'hello' is present.");
        } else {
            System.out.println("❌ Bean 'hello' is NOT present.");
        }
    }
}
